package com.rental.web.service.impl;

import com.rental.model.entity.chargeRecord.ChargeRecord;
import com.rental.quickenPoint.client.ChargeRecordClient;
import com.rental.web.service.ChargeRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ChargeRecordServiceImpl implements ChargeRecordService {

    @Autowired
    private ChargeRecordClient chargeRecordClient;
    @Override
    public Boolean advertising(ChargeRecord chargeRecord, Long userId) {
        return chargeRecordClient.advertising(chargeRecord,userId).getData();
    }

    @Override
    public Boolean advertisingWeiBo(ChargeRecord chargeRecord,Long userId) {
        return chargeRecordClient.advertisingWeiBo(chargeRecord,userId).getData();
    }

    @Override
    public List<ChargeRecord> getChargeRecordInfo(Long userId) {
        return chargeRecordClient.getChargeRecordInfo(userId).getData();
    }

    @Override
    public String toRegister(Long userId, String idCard, String realName) {
        return chargeRecordClient.toRegister(userId,idCard,realName).getData();
    }

    @Override
    public Boolean connectWay(ChargeRecord chargeRecord, Long userId) {
        return chargeRecordClient.connectWay(userId).getData();
    }

    @Override
    public Boolean sign(Long userId) {
        return chargeRecordClient.sign(userId).getData();
    }
}
